package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.InfoView
import hlhj.fhp.checkpoint.javaBean.CheckInfoBean
import hlhj.fhp.checkpoint.module.InfoModule

/**
 * Created by Never Fear   on 2018\11\12 0012.
Never More....
 */
class InfoPresenter :BasePresenter<InfoModule,InfoView>(), InfoModule.CheckInfoResp {
    override fun infoResp(checkInfoBean: CheckInfoBean) {
        view?.setInfo(checkInfoBean)
    }

    fun getInfo(c:Context){
        module?.getInfos(c)
    }
    override fun createModule() {
        module=InfoModule()
        module.listener=this
    }
}